Add Content

The add content function allows you to programmatically add a new content block to Ektron CMS400.NET without the need of logging in.

Here is the format for the add content function:

<? AddContent

(“Username”
“Password”,
“Domain”,
‘content_title”,
“content_comment”,
“ContentHtml”,
“SummaryHTML”,
“ContentLanguage”,
“FolderID”,
“GoLive”,
“EndDate”,
“MetaInfo”);












?>

This function is basically the same as the Add Content function in ASP. See Add Content for details.

The only difference between the PHP function and the ASP one is the syntax for implementing it. The PHP example is below.

Add Content Example

"The following is an example of the add content function in a template:

<tr>
	<td>
        <? AddContent ("admin", "admin", "", "Content Title", "Comment",
        "This is the <b>body</b> of the content.", "This is the <i>summary</i>
        for the content.", "1033", "0", "", "", ""); ?>
	</td>
</tr>
                        
Previous TopicNext Topic|